<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>新浪导航栏</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        .nav ul li a {
            text-decoration: none;
        }

        .nav {
            overflow: hidden;
            border-top: 3px solid #ff8500;
            border-bottom: 1px solid #edeef0;
            background-color: #fcfcfc;
        }

        .nav ul li {
            float: left;
            list-style: none;
            height: 41px;
            line-height: 41px;
        }

        .nav ul li a {
            display: inline-block;
            color: #4c4c4c;
            font-size: 12px;
            padding: 0 20px;
        }

        .nav ul li a:hover {
            background-color: #eee;
            color: #ff9400;
        }
    </style>
</head>

<body>
    <div class="nav">
        <ul>
            <li><a href="http://www.baidu.com">新浪导航</a></li>
            <li><a href="#">手机新浪网</a></li>
            <li><a href="#">移动客户端 </a></li>
            <li><a href="#">微博</a></li>
            <li><a href="#">腾讯</a></li>
            <li> <a href="#">淘啊宝</a></li>
        </ul>
    </div>
</body>

</html>